package org.wukongcrm.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 费用表
    */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "costs")
public class Costs implements Serializable {
    /**
     * 费用id
     */
    @TableId(value = "sale_costs_no", type = IdType.INPUT)
    private Integer saleCostsNo;

    /**
     * 供应商id
     */
    @TableField(value = "supplier_id")
    private Integer supplierId;

    /**
     * 支出类别
     */
    @TableField(value = "expend_type")
    private String expendType;

    /**
     * 金额
     */
    @TableField(value = "amount")
    private BigDecimal amount;

    /**
     * 费用明细备注
     */
    @TableField(value = "notes")
    private String notes;

    /**
     * 关联id
     */
    @TableField(value = "correlation_id")
    private Integer correlationId;

    /**
     * 1采购入库费用  2采购订单费用 3销售报价费用 4销售订单费用 5销售出库费用 6销售退货费用
     */
    @TableField(value = "correlation_option")
    private Integer correlationOption;

    private static final long serialVersionUID = 1L;
}